#define _VHD_LIB_H_
#include <string.h>
-#if defined(__linux__) || defined(__Linux__)
+#if defined(__linux__)
#include <endian.h>
#include <byteswap.h>
#elif defined(__NetBSD__)
#endif
#if BYTE_ORDER == LITTLE_ENDIAN
-#if defined(__linux__) || defined(__Linux__)
+#if defined(__linux__)
#define BE16_IN(foo) (*(foo)) = bswap_16(*(foo))
#define BE32_IN(foo) (*(foo)) = bswap_32(*(foo))
#define BE64_IN(foo) (*(foo)) = bswap_64(*(foo))
snprintf(uri, ibl+1, "file://%s", name);
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&urip, &ibl, &uri_utf8p, &obl) == (size_t)-1 ||
}
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&urip, &ibl, &uri_utf16p, &obl) == (size_t)-1 ||
return NULL;
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&in, &ibl, &out, &obl) == (size_t)-1 || ibl)
return NULL;
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&in, &ibl, &out, &obl) == (size_t)-1 || ibl)
memset(dst, 0, obl);
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&pname, &ibl, &dst, &obl) == (size_t)-1 || ibl)
#include <assert.h>
#if defined(__NetBSD__) || defined(__OpenBSD__)
#include <util.h>
-#elif defined(__linux__) || defined(__Linux__)
+#elif defined(__linux__)
#include <pty.h>
-#endif
-#if defined(__sun__)
+#elif defined(__sun__)
#include <stropts.h>
#endif